package com.jhclothing.product.vo;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

/**
 * 统计出入库信息
 */
public class StatisticInOutVo {

    /**
     * 统计类别（名称）
     */
    private String statisticTypeName;

    /**
     * 品类编码
     */
    private String code;
    /**
     * 总数
     */
    private BigDecimal countNum;

    /**
     * 请求参数：统计类别
     */
    private String statisticType;

    /**
     * 请求参数（时间）
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public BigDecimal getCountNum() {
        return countNum;
    }

    public void setCountNum(BigDecimal countNum) {
        this.countNum = countNum;
    }

    public String getStatisticTypeName() {
        return statisticTypeName;
    }

    public void setStatisticTypeName(String statisticTypeName) {
        this.statisticTypeName = statisticTypeName;
    }

    public String getStatisticType() {
        return statisticType;
    }

    public void setStatisticType(String statisticType) {
        this.statisticType = statisticType;
    }

    public Map<String, Object> getParams() {
        if (params == null) {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }
}
